<!--
 * @Author: your name
 * @Date: 2022-01-08 11:55:02
 * @LastEditTime: 2022-01-08 19:22:25
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue_shop\src\components\Regiest.vue
-->
<template>
  <div>
    <el-button @click="test1()">点击</el-button>
    <div style="color:red">{{test}}1</div>
    <div style="color:red">{{test2}}2</div>
    <div style="color:royalblue">{{test3}}3</div>
  </div>
</template>
<script lang="ts">

import { defineComponent, ref } from '@vue/composition-api'
export default defineComponent({
  setup() {
    console.log(1)
    const test3 = ref(1)
    const test = 0
    const test2 = "1111"
    const test1 = () => {
      console.log("1")
      console.log(test3.value,test,test2)
    }
    return { test1,test,test2,test3 }
  }
})
</script>
